package jp.co.sn.mml.pojo.tmwamichk;


public class TmwamichkId implements java.io.Serializable { 

	//WA受信
	private String waJsKbn;
	//受信MIC値
	private String jsMicValue;

	/** default constructor */
	public TmwamichkId(){

	}

	/** full constructor */
	public TmwamichkId(String waJsKbn,String jsMicValue){
		this.waJsKbn = waJsKbn;
		this.jsMicValue = jsMicValue;
	}

	//Property accessors
	public String getWaJsKbn(){
		return this.waJsKbn;
	}

	public void setWaJsKbn(String waJsKbn){
		this.waJsKbn=waJsKbn;
	}

	public String getJsMicValue(){
		return this.jsMicValue;
	}

	public void setJsMicValue(String jsMicValue){
		this.jsMicValue=jsMicValue;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmwamichkId))
			return false;

		TmwamichkId castOther = (TmwamichkId) other;

		return ((this.getWaJsKbn() ==  castOther.getWaJsKbn())
				||(this.getWaJsKbn()!=null && castOther.getWaJsKbn() !=null 
					&& castOther.getWaJsKbn() !=null 
					&& this.getWaJsKbn().equals(castOther.getWaJsKbn())))
			&& ((this.getJsMicValue() ==  castOther.getJsMicValue())
				||(this.getJsMicValue()!=null && castOther.getJsMicValue() !=null 
					&& castOther.getJsMicValue() !=null 
					&& this.getJsMicValue().equals(castOther.getJsMicValue())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getWaJsKbn() == null ? 0 : this.getWaJsKbn().hashCode());
		result = 37 * result
				+ (getJsMicValue() == null ? 0 : this.getJsMicValue().hashCode());
		return result;
	}

}